<template>
  <Index ref="Index" :isSub="true" :sonId="sonId" :queryDate="queryDate" :productId="productId" :productName="productName"></Index>
</template>

<script>
import Index from "../index.vue";
export default {
  components: { Index },
  data() {
    return {
      sonId: undefined,
    };
  },
  onLoad(option) {
    console.log("option", option);
    this.sonId = option.sonId;
    this.queryDate = option.queryDate;
    this.productName=option.productName;
    this.productId=option.productId;
  },
  onPullDownRefresh() {
    this.$refs.Index?.refresh().then(() => {
      uni.stopPullDownRefresh();
    });
  },
};
</script>

<style></style>
